package cn.yunhe.action;

import cn.yunhe.util.BaseUtil;
import lombok.Data;
import net.sf.json.JSONObject;

@Data
public class DemoAction extends BaseUtil {
    private String res;
    public String reg(){
        this.res="注册成功!";
        /*JSONObject jsonObject=new JSONObject();
        jsonObject.put("res","注册成功!");
        res=jsonObject.toString();*/
        return "success";
    }

    public String login(){
        this.res="登陆成功!";
        return "success";
    }

    public String check(){
        this.res="检测成功!";
        return "success";
    }
}
